package com.software.demo7;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Run {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
        Teacher teacher = ctx.getBean("teacher", Teacher.class);
        teacher.showName();
        teacher.showTeacherComputer();
        teacher.showCourse();
        teacher.showCourseSet();
        teacher.showMyStudent();
    }
}
